package org.eden.heartbeat.client.utils;

import java.text.DateFormat;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.TimeZone;

/**
 * <description>
 *
 * @author trsimoes
 * @version $Revision:$
 */
public class TimeUtils {

    public static String convertToReadableTime(long milliseconds) {
        DateFormat df = new SimpleDateFormat("HH 'horas', mm 'minutos e' ss 'segundos'");
        df.setTimeZone(TimeZone.getTimeZone("GMT+0"));
        return df.format(new Date(milliseconds));
    }
}